﻿using RJi.FanucInterface3.Common.Enum;

namespace RJi.FanucInterface3.Common
{
    public static class IRbtIOWrapperExtension
    {
        /// <summary>
        ///     注册电池报警
        /// </summary>
        /// <param name="rbtIOWrapper">包装器</param>
        /// <param name="key">键值</param>
        /// <returns></returns>
        public static IRbtIOWrapper RegisterBatteryAlarm(this IRbtIOWrapper rbtIOWrapper, string key = "BatteryAlarm")
        {
            rbtIOWrapper.RegisterOutput(OutputType.Uo, 9, 1, key);
            return rbtIOWrapper;
        }
    }
}